]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Use one-shot idle/timeout functions
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 31 Oct 2025 17:14:14 +0000 (18:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 29 Jan 2026 15:16:05 +0000 (15:16 +0000)
commit046cc0e647262332243f0b0001004cd6345cfba8
treefc38bfb5af4aa74dd555747b2f45ed210734a96b
parent6f62a116818d051c39aac61a6c59fbdf91aefeae
js: Use one-shot idle/timeout functions

gjs now provides overrides for GLib's one-shot idle/timeout
functions, so use them to save a bit of code and clearly
indicate that a callback is only invoked once.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3947>
41 files changed:
js/dbusServices/dbusService.js
js/dbusServices/extensions/extensionPrefsDialog.js
js/gdm/loginDialog.js
js/gdm/util.js
js/misc/breakManager.js
js/misc/ibusManager.js
js/misc/inputMethod.js
js/misc/timeLimitsManager.js
js/portalHelper/main.js
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/background.js
js/ui/components/automountManager.js
js/ui/components/polkitAgent.js
js/ui/dash.js
js/ui/dnd.js
js/ui/extensionSystem.js
js/ui/init.js
js/ui/keyboard.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/main.js
js/ui/messageTray.js
js/ui/osdWindow.js
js/ui/overview.js
js/ui/panel.js
js/ui/screenShield.js
js/ui/screenshot.js
js/ui/scripting.js
js/ui/search.js
js/ui/status/accessibility.js
js/ui/status/backgroundApps.js
js/ui/status/bluetooth.js
js/ui/status/remoteAccess.js
js/ui/status/thunderbolt.js
js/ui/status/volume.js
js/ui/switcherPopup.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceSwitcherPopup.js
js/ui/workspaceThumbnail.js